home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12276 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 61 62 65 73 74 |Path: ne|ws.abest|
|00000010| 2e 63 6f 6d 21 75 73 65 | 6e 65 74 0a 46 72 6f 6d |.com!use|net.From|
|00000020| 3a 20 50 65 74 65 72 20 | 4e 6f 72 72 20 3c 70 6e |: Peter |Norr <pn|
|00000030| 6f 72 72 40 61 62 65 73 | 74 2e 63 6f 6d 3e 0a 4e |orr@abes|t.com>.N|
|00000040| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000050| 6c 61 6e 67 2e 63 0a 53 | 75 62 6a 65 63 74 3a 20 |lang.c.S|ubject: |
|00000060| 52 65 3a 20 49 73 20 54 | 68 69 73 20 42 61 64 20 |Re: Is T|his Bad |
|00000070| 43 6f 64 69 6e 67 20 50 | 72 61 63 74 69 63 65 3f |Coding P|ractice?|
|00000080| 0a 44 61 74 65 3a 20 46 | 72 69 2c 20 32 39 20 4d |.Date: F|ri, 29 M|
|00000090| 61 72 20 31 39 39 36 20 | 32 33 3a 35 39 3a 30 32 |ar 1996 |23:59:02|
|000000a0| 20 2d 30 38 30 30 0a 4f | 72 67 61 6e 69 7a 61 74 | -0800.O|rganizat|
|000000b0| 69 6f 6e 3a 20 41 62 65 | 73 74 20 4e 65 74 77 6f |ion: Abe|st Netwo|
|000000c0| 72 6b 20 53 65 72 76 69 | 63 65 73 20 49 6e 63 2e |rk Servi|ces Inc.|
|000000d0| 20 68 74 74 70 3a 2f 2f | 77 77 77 2e 61 62 65 73 | http://|www.abes|
|000000e0| 74 2e 63 6f 6d 0a 4d 65 | 73 73 61 67 65 2d 49 44 |t.com.Me|ssage-ID|
|000000f0| 3a 20 3c 33 31 35 43 45 | 39 43 36 2e 37 37 39 30 |: <315CE|9C6.7790|
|00000100| 40 61 62 65 73 74 2e 63 | 6f 6d 3e 0a 52 65 66 65 |@abest.c|om>.Refe|
|00000110| 72 65 6e 63 65 73 3a 20 | 3c 34 6a 67 6e 74 32 24 |rences: |<4jgnt2$|
|00000120| 39 64 31 40 6c 6f 6b 69 | 2e 74 6f 72 2e 68 6f 6f |9d1@loki|.tor.hoo|
|00000130| 6b 75 70 2e 6e 65 74 3e | 0a 4e 4e 54 50 2d 50 6f |kup.net>|.NNTP-Po|
|00000140| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 61 62 65 73 |sting-Ho|st: abes|
|00000150| 74 32 32 38 2e 61 62 65 | 73 74 2e 63 6f 6d 0a 4d |t228.abe|st.com.M|
|00000160| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|00000170| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|00000180| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|00000190| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001a0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001b0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4d 61 |oding: 7|bit.X-Ma|
|000001c0| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 32 2e |iler: Mo|zilla 2.|
|000001d0| 30 20 28 57 69 6e 31 36 | 3b 20 49 29 0a 54 6f 3a |0 (Win16|; I).To:|
|000001e0| 20 52 61 6a 65 6e 64 72 | 61 20 53 69 6e 67 68 20 | Rajendr|a Singh |
|000001f0| 3c 52 61 6a 65 6e 64 72 | 61 5f 53 69 6e 67 68 40 |<Rajendr|a_Singh@|
|00000200| 6d 73 6e 2e 63 6f 6d 3e | 0a 0a 52 61 6a 65 6e 64 |msn.com>|..Rajend|
|00000210| 72 61 20 53 69 6e 67 68 | 20 77 72 6f 74 65 3a 0a |ra Singh| wrote:.|
|00000220| 3e 20 0a 3e 20 69 6e 74 | 20 6d 61 69 6e 28 69 6e |> .> int| main(in|
|00000230| 74 20 61 72 67 63 2c 20 | 63 68 61 72 20 2a 61 72 |t argc, |char *ar|
|00000240| 67 76 5b 5d 29 0a 3e 20 | 20 20 20 7b 0a 3e 20 20 |gv[]).> | {.> |
|00000250| 20 20 63 68 61 72 20 73 | 74 72 69 6e 67 5b 31 32 | char s|tring[12|
|00000260| 38 5d 3b 0a 3e 20 20 20 | 20 63 68 61 72 20 2a 66 |8];.> | char *f|
|00000270| 75 6e 63 31 28 76 6f 69 | 64 29 3b 0a 3e 20 0a 3e |unc1(voi|d);.> .>|
|00000280| 20 20 20 20 73 74 72 63 | 70 79 28 73 74 72 69 6e | strc|py(strin|
|00000290| 67 2c 20 66 75 6e 63 31 | 28 29 29 3b 0a 3e 20 20 |g, func1|());.> |
|000002a0| 20 20 72 65 74 75 72 6e | 20 30 3b 0a 3e 20 20 20 | return| 0;.> |
|000002b0| 20 7d 0a 3e 20 0a 3e 20 | 63 68 61 72 20 2a 66 75 | }.> .> |char *fu|
|000002c0| 6e 63 31 28 76 6f 69 64 | 29 0a 3e 20 20 20 20 7b |nc1(void|).> {|
|000002d0| 0a 3e 20 20 20 20 63 68 | 61 72 20 74 65 73 74 5b |.> ch|ar test[|
|000002e0| 31 30 30 5d 3b 0a 3e 20 | 0a 3e 20 20 20 20 73 70 |100];.> |.> sp|
|000002f0| 72 69 6e 74 66 28 74 65 | 73 74 2c 20 22 54 65 73 |rintf(te|st, "Tes|
|00000300| 74 3a 20 20 25 64 22 2c | 20 31 29 3b 0a 3e 20 20 |t: %d",| 1);.> |
|00000310| 20 20 72 65 74 75 72 6e | 20 74 65 73 74 3b 0a 3e | return| test;.>|
|00000320| 20 20 20 20 7d 0a 3e 20 | 0a 3e 20 2e 2e 2e 20 73 | }.> |.> ... s|
|00000330| 69 6e 63 65 20 49 20 61 | 6d 20 75 73 69 6e 67 20 |ince I a|m using |
|00000340| 74 68 65 20 76 61 6c 75 | 65 20 72 65 74 75 72 6e |the valu|e return|
|00000350| 65 64 20 66 72 6f 6d 20 | 66 75 6e 63 31 28 29 20 |ed from |func1() |
|00000360| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 28 69 6e 0a |immediat|ely (in.|
|00000370| 3e 20 6d 61 69 6e 28 29 | 29 2c 20 69 73 20 74 68 |> main()|), is th|
|00000380| 69 73 20 72 65 6c 69 61 | 62 6c 65 3f 20 20 41 66 |is relia|ble? Af|
|00000390| 74 65 72 20 49 20 63 6f | 70 79 20 69 74 20 69 6e |ter I co|py it in|
|000003a0| 74 6f 20 22 73 74 72 69 | 6e 67 22 2c 20 49 20 77 |to "stri|ng", I w|
|000003b0| 6f 6e 27 74 20 62 65 0a | 3e 20 75 73 69 6e 67 20 |on't be.|> using |
|000003c0| 74 68 61 74 20 61 72 65 | 61 20 6f 66 20 6d 65 6d |that are|a of mem|
|000003d0| 6f 72 79 20 61 6e 79 6d | 6f 72 65 20 28 69 2e 20 |ory anym|ore (i. |
|000003e0| 65 2e 20 74 68 65 20 70 | 6f 69 6e 74 65 72 20 72 |e. the p|ointer r|
|000003f0| 65 74 75 72 6e 65 64 20 | 62 79 0a 3e 20 66 75 6e |eturned |by.> fun|
|00000400| 63 31 28 29 29 2e 0a 3e | 20 0a 3e 20 2d 2d 2d 0a |c1())..>| .> ---.|
|00000410| 3e 20 52 61 6a 65 6e 64 | 72 61 20 53 69 6e 67 68 |> Rajend|ra Singh|
|00000420| 2c 20 42 2e 20 53 63 2e | 20 28 52 61 6a 65 6e 64 |, B. Sc.| (Rajend|
|00000430| 72 61 5f 53 69 6e 67 68 | 40 6d 73 6e 2e 63 6f 6d |ra_Singh|@msn.com|
|00000440| 29 0a 3e 20 22 57 68 61 | 74 20 69 73 20 75 6e 64 |).> "Wha|t is und|
|00000450| 65 72 73 74 6f 6f 64 20 | 6e 65 65 64 20 6e 6f 74 |erstood |need not|
|00000460| 20 62 65 20 64 69 73 63 | 75 73 73 65 64 2e 22 20 | be disc|ussed." |
|00000470| 2d 20 4c 6f 72 65 6e 20 | 41 64 61 6d 73 54 6f 20 |- Loren |AdamsTo |
|00000480| 52 61 6a 65 6e 64 72 61 | 3a 0a 49 74 20 69 73 20 |Rajendra|:.It is |
|00000490| 63 6f 6d 6d 6f 6e 20 70 | 72 61 63 74 69 63 65 20 |common p|ractice |
|000004a0| 74 6f 20 6e 65 76 65 72 | 20 72 65 74 75 72 6e 20 |to never| return |
|000004b0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 6c |a pointe|r to a l|
|000004c0| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 2e 0a 53 |ocal var|iable..S|
|000004d0| 6f 2c 20 49 20 77 6f 75 | 6c 64 20 68 61 76 65 20 |o, I wou|ld have |
|000004e0| 74 6f 20 73 61 79 20 69 | 74 20 69 73 20 77 72 6f |to say i|t is wro|
|000004f0| 6e 67 21 21 0a 0a 0a | |ng!!... | |
+--------+-------------------------+-------------------------+--------+--------+